Error on a simple dialogue Box

Below is code to create a simple dialogue box that prompts users for a drive letter.
at the very end when I show(DB) I get an error and I can't figure out why. Even with the error the dialogue box pops up and functions as it's supposed to. Any ideas?

{code}
DB promptDB = create("Enter Drive", styleStandard|styleCentered )
string driveLetters[] =
{"A:", "B:", "C:", "D:", "E:", "F:", "G:", "H:", "I:", "J:", "K:", "L:", "M:", "N:",
"O:", "P:", "Q:", "R:", "S:", "T:", "U:", "V:", "W:", "X:", "Y:", "Z:"};
DBE choiceDBE = choice(promptDB, "Drive:", driveLetters, 26, 20, 20, false);
void getInput(DB win)
{
string userDrive = get(choiceDBE);

print "The user has entered: " userDrive "\n";
hide(win)
}

ok (promptDB, "OK", getInput)
show(promptDB)
{/code}
lsand - Thu Jan 27 16:13:23 EST 2011

Re: Error on a simple dialogue Box
llandale - Thu Jan 27 16:42:22 EST 2011

I don't get an error. What error are you getting?

Re: Error on a simple dialogue Box
lsand - Thu Jan 27 16:43:45 EST 2011

llandale - Thu Jan 27 16:42:22 EST 2011
I don't get an error. What error are you getting?

When I run it says:
-R-E- DXL: <Line:21> An unexpected error has occurred.
-I- DXL: execution halted
Line 21 is referring to the very last line. Weird because the dialogue box shows regardless of the error.

Re: Error on a simple dialogue Box
llandale - Thu Jan 27 16:48:46 EST 2011

lsand - Thu Jan 27 16:43:45 EST 2011
When I run it says:
-R-E- DXL: <Line:21> An unexpected error has occurred.
-I- DXL: execution halted
Line 21 is referring to the very last line. Weird because the dialogue box shows regardless of the error.

The code you posted is only 16 lines, better post the whole thing.

Re: Error on a simple dialogue Box
llandale - Thu Jan 27 16:50:29 EST 2011

llandale - Thu Jan 27 16:48:46 EST 2011
The code you posted is only 16 lines, better post the whole thing.

And what version of DOORS.

Re: Error on a simple dialogue Box
lsand - Thu Jan 27 16:59:28 EST 2011

llandale - Thu Jan 27 16:50:29 EST 2011
And what version of DOORS.

I am using v9.2

DB promptDB = create("Enter Drive", styleStandard|styleCentered )
string driveLetters[] =
{"A:", "B:", "C:", "D:", "E:", "F:", "G:", "H:", "I:", "J:", "K:", "L:", "M:", "N:",
"O:", "P:", "Q:", "R:", "S:", "T:", "U:", "V:", "W:", "X:", "Y:", "Z:"};
DBE choiceDBE = choice(promptDB, "Drive:", driveLetters, 26, 20, 20, false);

void getInput(DB win)
{
string userDrive = get(choiceDBE);

print "The user has entered: " userDrive "\n";
hide(win)
}

ok (promptDB, "OK", getInput)
show(promptDB)
Error:

-R-E- DXL: <Line:16> An unexpected error has occurred.
-I- DXL: execution halted
that is all the code. I previously did not post some of my commented out code.

Re: Error on a simple dialogue Box
lsand - Thu Jan 27 18:08:38 EST 2011

lsand - Thu Jan 27 16:59:28 EST 2011
I am using v9.2

DB promptDB = create("Enter Drive", styleStandard|styleCentered )
string driveLetters[] =
{"A:", "B:", "C:", "D:", "E:", "F:", "G:", "H:", "I:", "J:", "K:", "L:", "M:", "N:",
"O:", "P:", "Q:", "R:", "S:", "T:", "U:", "V:", "W:", "X:", "Y:", "Z:"};
DBE choiceDBE = choice(promptDB, "Drive:", driveLetters, 26, 20, 20, false);

void getInput(DB win)
{
string userDrive = get(choiceDBE);

print "The user has entered: " userDrive "\n";
hide(win)
}

ok (promptDB, "OK", getInput)
show(promptDB)
Error:

-R-E- DXL: <Line:16> An unexpected error has occurred.
-I- DXL: execution halted
that is all the code. I previously did not post some of my commented out code.

It seems to be a problem with the DXL Editor(Sodius) that i'm using because from the DOORS DXL window I don't get the error.

Re: Error on a simple dialogue Box
lsand - Thu Jan 27 18:24:42 EST 2011

lsand - Thu Jan 27 18:08:38 EST 2011
It seems to be a problem with the DXL Editor(Sodius) that i'm using because from the DOORS DXL window I don't get the error.

It seems to be a problem with the DXL Editor(Sodius) that i'm using because from the DOORS DXL window I don't get the error.

Re: Error on a simple dialogue Box
PDU - Fri Jan 28 01:19:30 EST 2011

lsand - Thu Jan 27 18:24:42 EST 2011
It seems to be a problem with the DXL Editor(Sodius) that i'm using because from the DOORS DXL window I don't get the error.

Hello,

works fine with Sodius editor (DOORS 9.1, DXL Editor Version: 1.0.1)

Pierre

Re: Error on a simple dialogue Box
Mathias Mamsch - Fri Jan 28 10:46:47 EST 2011

lsand - Thu Jan 27 18:24:42 EST 2011
It seems to be a problem with the DXL Editor(Sodius) that i'm using because from the DOORS DXL window I don't get the error.

Are you maybe using "Debug" Mode or just the normal execution mode? If so, does the error occur in both modes? Getting no error here, (DOORS 8.2, Sodius DXL Editor 2.0.3). Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Error on a simple dialogue Box
lsand - Fri Jan 28 11:36:24 EST 2011

Mathias Mamsch - Fri Jan 28 10:46:47 EST 2011
Are you maybe using "Debug" Mode or just the normal execution mode? If so, does the error occur in both modes? Getting no error here, (DOORS 8.2, Sodius DXL Editor 2.0.3). Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

I am using the normal execution mode. I restarted both tools a couple of times and i no longer get the error. Strange!?

Re: Error on a simple dialogue Box
Mathias Mamsch - Fri Jan 28 14:33:58 EST 2011

lsand - Fri Jan 28 11:36:24 EST 2011
I am using the normal execution mode. I restarted both tools a couple of times and i no longer get the error. Strange!?

Then probably your DOORS client was a little messed up from a further run. The code is fine. Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS